/*
 * vp.hpp
 *
 *  Created on: 16 feb 2010
 *      Author: adboucht
 */

#ifndef VP_HPP_
#define VP_HPP_

#include <iostream>
#include <string>
#include "boost/date_time/gregorian/gregorian.hpp"
#include "boost/date_time/posix_time/posix_time.hpp"


using namespace std;
using namespace boost;
using namespace boost::gregorian;
using namespace boost::posix_time;


class VP {
private:
	string _name;
	string _searchName;
	string _company;
	string _marketPlace;

	double _closingPrice;
	date   _closingDate;
	ptime  _closingTime;

public:


	VP(string , string , string , string ,
			double , date , ptime);
    date getClosingDate() const
    {
        return _closingDate;
    }

    double getClosingPrice() const
    {
        return _closingPrice;
    }

    ptime getClosingTime() const
    {
        return _closingTime;
    }

    string getCompany() const
    {
        return _company;
    }

    string getMarketPlace() const
    {
        return _marketPlace;
    }

    string getName() const
    {
        return _name;
    }

    string getSearchName() const
    {
        return _searchName;
    }

    void setClosingDate(date _closingDate)
    {
        this->_closingDate = _closingDate;
    }

    void setClosingPrice(double _closingPrice)
    {
        this->_closingPrice = _closingPrice;
    }

    void setClosingTime(ptime _closingTime)
    {
        this->_closingTime = _closingTime;
    }

    void setCompany(string _company)
    {
        this->_company = _company;
    }

    void setMarketPlace(string _marketPlace)
    {
        this->_marketPlace = _marketPlace;
    }

    void setName(string _name)
    {
        this->_name = _name;
    }

    void setSearchName(string _searchName)
    {
        this->_searchName = _searchName;
    }


};




inline VP::VP(string _name ="" , string _searchname = "", string _company ="", string _marketPlace ="",
		double _closingPrice =0, date _closingDate = date(1900,Jan,1),
		ptime _closingTime = ptime(min_date_time))
{
	setName(_name);
	setSearchName(_searchName);
	setCompany(_company);
	setMarketPlace(_marketPlace);
	setClosingPrice(_closingPrice);
	setClosingDate(_closingDate);
	setClosingTime(_closingTime);
}




#endif /* VP_HPP_ */
